tests: Add prop editors to testtreeview
authorBenjamin Otte <otte@redhat.com>
Thu, 24 Nov 2011 17:07:23 +0000 (18:07 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 24 Nov 2011 17:29:45 +0000 (18:29 +0100)
It tests treeviews, so we'd better be able to edit them :)

tests/testtreeview.c

index cbbe9abb9d0912e2f99d7a7667b0e43a69082786..d9d80ceb8ba16193e01ffa1ede3ed177af5f488b 100644 (file)
@@ -792,6 +792,9 @@ main (int    argc,
   
   gtk_container_add (GTK_CONTAINER (sw), tv);
   
+  create_prop_editor (G_OBJECT (tv), GTK_TYPE_TREE_VIEW);
+  create_prop_editor (G_OBJECT (gtk_tree_view_get_selection (GTK_TREE_VIEW (tv))), GTK_TYPE_TREE_SELECTION);
+
   gtk_widget_show_all (window);
   
   gtk_main ();